// import api_nt from "../api/ntjq.js";

export default {
	state: {
		// isBuild:'false',//楼层隐藏场景
		hidScene: false,//隐藏场景
		LhidScene: true,
		_3Dfull: false,
		ucls: '',//unityed样式类
		floors: '',//楼层栏样式类
		datCarSpace: [],
		datCarSpacePark: [],
		datCarSpaceInfo: {
			totalCount: '_', //总数
			freeCount: '_', //空闲
			roadCount: 2,
			usedCount: '_' //已使用

		},
		_devices: [],
	},
	getters: {},
	mutations: {

		hBeginNt(state, d) {

			let s3d = state.scene3d;

			//绽放限制
			s3d.SetScaleValue({
				enable: true,
				max: 200,
				min: 60
			});

			//默认 首页 视角
			// s3d.SetCurrentBuildPos({m_use: true, m_bName: 'nhdzs', m_Pos: '{x:50.05877,y:158.2869,z:117.3235}', m_Rot: '{x:46.40674,y:195.3001,z:5.633759e-05}'}); 

			//旋转锁定
			s3d.SetLockRot(true);

			//转到首页
			s3d.SetBuild();

		},
		hSetParkingBerth(state, ds) {

		},
		hParkingInfo(state, ds) {
		}
	},
	actions: {
		asyncBeginNt(state, d) {
			state.dispatch("hGetParkCarspace", '');
			state.commit('hBeginNt', '');
		},
		hGetParkCarspace(state, d) {
			console.log("停车场信息动态余位");

			//动态余位
			// api_nt.hParkingBerth((ts) => {
			// 	state.commit("hSetParkingBerth", ts);
			// });
		}

	}
}
